<?php

//防止恶意调用
if (!defined('IN_MOD'))
{
    die('Hacking attempt');
}

// 扩展配置公用类
require(MODULEPARA_PATH . '/configservice/configcommon.php');

// 加载模板程序配置
if($configinfo['tplok'] == 1)
{
	require($configinfo['tplurl'] . '/configservice/configcommon.php');// 调用扩展配置公用类
}

// pc mobile xcx配置程序
if($configinfo['modulepara'] == "pc" || $configinfo['modulepara'] == "mobile" || $configinfo['modulepara'] == "xcx")
{
    // 会员配置程序
	if($configmember)
	{
        // 扩展配置公用类
        require(MODULEPARA_PATH . '/configservice/configmember.php');
        
        // 加载模板程序配置
        if($configinfo['tplok'] == 1)
        {
            require($configinfo['tplurl'] . '/configservice/configmember.php');// 调用扩展配置公用类
        }
    }
}

// 后台配置程序
if($configinfo['modulepara'] == "admin")
{
    // 扩展配置公用类
    require(MODULEPARA_PATH . '/configservice/configadmin.php');
    
    // 加载模板程序配置
    if($configinfo['tplok'] == 1)
    {
        require($configinfo['tplurl'] . '/configservice/configadmin.php');// 调用扩展配置公用类
    }
}

// 商家后台配置程序
if($configinfo['modulepara'] == "supplier" || $configinfo['suppliermodule'] == 1 || $configinfo['adminsuppliermodule'] == 1)
{
    // 扩展配置公用类
    require(MODULEPARA_PATH . '/configservice/configsupplier.php');
}
?>